package Views;

import UCM.UCDisplayAddPromotion;
import java.awt.FlowLayout;
import javax.swing.JButton;
import javax.swing.JPanel;

/**
 *
 * @author Joshua King
 */
public class ViewDisplayAddPromotion extends JPanel {
    protected JButton addPromotionButton = new JButton("Add Promotion");
    private final UCDisplayAddPromotion UCDisplayAddPromotion = new UCDisplayAddPromotion(this);

    public ViewDisplayAddPromotion() {
        setLayout(new FlowLayout());
        add(addPromotionButton);
        addPromotionButton.addActionListener(new AdapterUCCToAL(UCDisplayAddPromotion));
    }

    public void setAddPromotionVisible() {
        ViewMain.getInstance().updateAddPromotion();
    }
}
